<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>修改菜单</title>
        <link rel="stylesheet" href="../../static/layuiadmin/layui/css/layui.css" tppabs="https://www.layui.site/layui/dist/css/layui.css" media="all">
        <link href="../../static/layuiadmin/style/admin.css" rel="stylesheet">
        <link href="http://netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
        <script src="../../static/layuiadmin/config.js" charset="utf-8"></script>
        <script src="../../static/layuiadmin/layui/layui.js" charset="utf-8"></script>
        <script src="../../static/layuiadmin/layui/vue.min.js" charset="utf-8"></script>
        <script src="../../static/layuiadmin/lib/index.js" charset="utf-8"></script>
        <script src="https://code.jquery.com/jquery-3.6.0.js"></script>
        <script src="menu.js" charset="utf-8"></script>
        <script src="updMenu.js" charset="utf-8"></script>
    </head>
    <body>
        <form id="updForm" class="layui-form" action="" lay-filter="component-form-group">
            <input type="text" id="id" name="id" class="layui-input" style="display: none"/>
            <div class="layui-form-item">
                <label class="layui-form-label">类型</label>
                <div class="layui-input-block">
                    <select id="type"  name="type" lay-search="" disabled>
                        <option value="0">目录</option>
                        <option value="1">菜单</option>
                        <option value="2">按钮</option>
                    </select>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">上级菜单<i style="color: red">*</i></label>
                <div class="layui-input-block">
                    <input type="text" id="menuPid" name="menuPid" class="layui-input" style="display: none"/>
                    <input type="text" class="layui-input" id="parentName" style="cursor:pointer;" name="parentName" lay-verify="parentName" onclick="load_menuTree()" placeholder="一级菜单"/>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">菜单名称<i style="color: red">*</i></label>
                <div class="layui-input-block">
                    <input type="text" id="menuName" name="menuName" autocomplete="off" lay-verify="menuName" placeholder="菜单名称或按钮名称" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item" id="path1">
                <label class="layui-form-label">菜单Path<i style="color: red">*</i></label>
                <div class="layui-input-block">
                    <input type="text" id="path" name="path" autocomplete="off"  placeholder="菜单Path" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item" id="icon1">
                <label class="layui-form-label">菜单图标<i style="color: red">*</i></label>
                <div class="layui-input-block">
                    <input type="text" id="icon" name="icon" autocomplete="off" placeholder="图标" class="layui-input">
                    <code style="margin-top:4px;display: block;">获取图标：http://www.fontawesome.com.cn/faicons/</code>
                </div>
            </div>

            <div class="layui-form-item" id="perms1">
                <label class="layui-form-label">授权标识</label>
                <div class="layui-input-block">
                    <input type="text" id="perms" name="perms" autocomplete="off" placeholder="多个用逗号隔开，如：user:list,user:create" class="layui-input">
                </div>
            </div>

            <div class="layui-input-block">
                <div class="layui-footer" style="margin-left: 256px;margin-top: 50px">
                    <button class="layui-btn" type="submit" lay-submit=""  lay-filter="updMenu">确 定</button>
                </div>
            </div>

        </form>
    </body>
</html>